import { useState } from "react";
function UseStateTest() {
    const [count, setCount ] = useState(0)
    console.log( useState(0));
    const handleClick = () => {
        setCount(count + 1)
    }
    return (
        <div>
            <button onClick={handleClick}>add</button>
            <div>{count}</div>
        </div>
    )
}

export default UseStateTest;